STEP 11: Time for our last if statement!

  • Create a new if statement at the bottom of your program.
  • Change the test variable to rand_answer and the test value to 4.
  • Drag in Say and drop it inside your if statement.
  • Change the name in front of .say() to tim and the string to "Signs point to yes".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)